<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>canvas事件</title>
</head>
<body>
    <canvas id="oCanvas" width="600" height="700" style="border:1px black solid"></canvas>
</body>

<script>
    // 获取canvas对象
    var canvas = document.getElementById("oCanvas");
    // 通过canvas对象获取 2d对象（画笔对象）
    var ctx = canvas.getContext('2d');

    

    














</script>
</html>